<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="{$appConfigs[member_title]}">
    <title>购物车结算-用户中心</title>
    {run $pageName='order'}<!--用于加载对应页面的css-->
    {include member.inc.csslink}
</head>
<body>
{run $payTitle='结算页'}
{include member.inc.header_pay}
<main class="max-w">
   <!-- <div class="breadcrumb">您现在的位置：<a href="/member/order/car/list">购物车列表</a> > 订单列表 </div>-->
    <!--   {include member.inc.leftNav}-->
    <div class="order_pay">
        <section class="panel clearfix">
            <form class="form-block form" action="/member/order/addOrder" method="post">
                <div class="header3">
                    <dl class="fl">
                        <dd><h1>填写核对购物信息</h1></dd>
                        <dd><p>请仔细核对填写收货、发票等信息，以确保物流快递及时准确投递</p></dd>
                    </dl>
                    <ul class="r progress2 step1 step0_1">
                        <li>
                            <span class="circle"></span>
                            <div class="text">我的购物车</div>
                        </li>
                        <li>
                            <span class="circle"></span>
                            <div class="text">填写核对购物车信息</div>
                        </li>
                        <li>
                            <span class="circle"></span>
                            <div class="text">支付货款</div>
                        </li>
                        <li>
                            <span class="circle"></span>
                            <div class="text">订单完成</div>
                        </li>
                    </ul>
                </div>
                {if $item[delivery_way] != $SHIPPING_WAY_BUYER}
                <div class="hr"></div>
                <div class="addr">
                    <div class="header_mes">
                        <h2 >收货人信息</h2>
                        <span>请从您的地址库选择正确的收货地址，也可直接修改原地址或新增收货地址</span>
                    </div>
                    <div class="clearfix pay_addr">

                        {loop $address_item $k $v}
                        <dl {if $v[default_type]==$DEFAULT_TYPE_IS}class="pit_on"{/if} style="position: relative">
                            <dt>
                                <input style="opacity: 0;position: absolute;left: 0;top: 0;width: 100%;height: 100%;z-index: 1;" type="radio" name="address_id" id="radio{$k}" value="{$v[id]}" {if $v[default_type]==$DEFAULT_TYPE_IS}checked="checked" {/if}>
                            <p>{$v[consignee]}</p>
                            {if $v[default_type]==$DEFAULT_TYPE_IS}
                            <span class="addr_de ">
                                <i>默认</i>
                            </span>
                            {/if}
                            </dt>
                            <dd>{$v[contact_mobile]}</dd>
                            <dd>{$v[detail_address]}</dd>
                            <dd class="amend" {if $v[default_type]==$DEFAULT_TYPE_IS}style="display:block"{/if}><a class="link2" href="/member/addressInfo/edit?id={$v[id]}" data-act="editAddr" data-id="{$v[id]}">修改</a></dd>
                        </dl>
                        {/loop}

                        <dl class="mes_add">
                            <dt>
                                <a href="/member/addressInfo/index" data-act="editAddr"><img src="/res/mpe/img/mes_add.png">
                                </a>
                            </dt>
                            <dd>添加新地址</dd>
                        </dl>
                    </div>
                   <!-- <ul>
                        {loop $address_item $k $v}
                        <li class="radio-wrap">
                        <input type="radio" name="address_id" id="radio{$k}" value="{$v[id]}" {if $v[default_type]==$DEFAULT_TYPE_IS}checked="checked"{/if}>
                         <label for="radio{$k}">{$v[detail_address]} （{$v[consignee]}） {$v[contact_mobile]} </label>
                        <a class="link2 fr" href="/member/addressInfo/edit?id={$v[id]}" data-act="editAddr" data-id="{$v[id]}">修改地址</a></li>
                        {/loop}
                    </ul>-->
                </div>

                {else}
                <div class="deliver">
                    <div class="header2"><h2 >提货人信息确认</h2></div>
                    <dl>

                        <dt><span class="asterisk">*</span>提货人姓名</dt>
                        <dd>
                            <input class="form-control"  type="text" name="shipping[shipping_fullname]" value="" data-name="提货人姓名" maxlength="20"/>
                        </dd>
                        <dt><span class="asterisk">*</span>手机号码</dt>
                        <dd>
                            <input class="form-control"  type="text" name="shipping[shipping_mobile]" value="" data-name="手机号码"/>
                        </dd>
                        <dt><span class="asterisk">*</span>提货车辆牌号</dt>
                        <dd>
                            <input class="form-control"  type="text" name="shipping[shipping_car_card]" data-name="提货车辆牌号"/>
                        </dd>
                        <dt><span class="asterisk">*</span>提货人身份证</dt>
                        <dd>
                            <input class="form-control"  type="text" name="shipping[shipping_id_card]" data-name="提货人身份证"/>
                        </dd>
                        <dt><span class="asterisk">*</span>提货日期</dt>
                        <dd>
                            <input class="form-control"  type="text" name="shipping[shipping_time]" onFocus="WdatePicker()"  class="Wdate" data-name="提货日期" readonly/>
                        </dd>
                        <dt>提货补充</dt>
                        <dd>
                            <input class="form-control"  type="text" name="shipping[shipping_remark]" data-name="提货车辆牌号"/>
                        </dd>
                    </dl>
                </div>
                {/if}
                <div class="type">
                    <div class="header2"><h2>支付方式</h2></div>
                    <div class="pay_type">
                         {if $sign_status==true}
                        <span ><input type="radio" name="data[pay_way]" value="0" id="pay1" checked><label for="pay1">线上支付</label></span>
                        {/if}
                         <span  ><input type="radio" name="data[pay_way]" value="1" id="pay2" {if $sign_status==false}checked{/if}><label for="pay2">线下支付</label></span>
                    </div>
                </div>
                <div class="info">
                    <div class="header2"><h2>订单信息确认</h2></div>
                    <table class="table">
                        <thead><tr>
                            <td width="200">商品</td>
                            <td width="80">货号</td>
                            <td width="100">销售价(元/{$pro_unit})</td>
                            <td width="70">数量({$pro_unit})</td>
                            <td width="100">最小交易量({$pro_unit})</td>
                            <td width="90">交收地</td>
                            <td width="80">购买数量({$pro_unit})</td>
                            <td width="100">金额(元)</td>
                        </tr></thead>
                        <tbody>
                        {loop $item[product] $v}
                        <tr>
                            <td class="break-word">{$v[name]}</td>
                            <td class="break-word">{$v[product_no]}</td>
                            <td>￥{$v[sales_price]}</td>
                            <td>{$v[quantity]}</td>
                            <td>{$v[min_volume]}</td>
                            <td>{$v[address]}</td>
                            <td>{$v[buy_quantity]}</td>
                            <td class="c-primary">￥{$v[price]}</td>
                        </tr>
                        {/loop}
                        </tbody>
                    </table>
                </div>
                <div class="form-base clearfix">
                    <div class="form-row fl">
                        <label>给商家留言</label>
                        <textarea name="data[buyers_remark]" class="full" rows="1"></textarea>
                    </div>
                    <dl class="row_mes">
                        <dd>交收方式：<span class="c-info">{$item[deliveryWay]}</span></dd>
                        <dd><span class="fz16">商品总额：<b class="c-danger">￥{$item[total_prict]}</b></span></dd>
                    </dl>
                </div>
                <div class="pay_bar">
                    <span>已选商品：<b class="c-primary">{$item[total_quantity]}{$pro_unit}</b></span>
                    <div class="fr">
                        <input type="hidden" name="data[isCart]" value="{$isCart}">
                        <input type="hidden" name="data[shipping_way]" value="{$item[delivery_way]}">
                        <input type="hidden" name="product[product_id]" value='{$ids}'>
                        <input type="hidden" name="product[product_quantity]" value='{$quantity}'>
                        <span>应付总额：<b class="c-primary">￥{$item[total_prict]}</b></span>
                        <a href="#" class="pay_btn">提交订单</a>
                    </div>

                </div>
            </form>
        </section>
    </div>
</main>

{include member.inc.footer}
{include member.inc.script}
<script type="text/html" id="addrTemp">
    <form class="form-block " id="form1" {%if edit%}action="/member/addressInfo/do_edit"{%else%}action="/member/addressInfo/do_add"{%/if%} onsubmit="return false;" method="POST">
    <dl class="clearfix">
        <dt><span class="asterisk">*</span>收货地区</dt>
        <dd>
            <div class="area-wrap"></div>
        </dd>
        <dt><span class="asterisk">*</span>详细地址</dt>
        <dd>
            <input class="form-control" type="text" value="{%address%}" name="data[address]" maxlength="20"/>
        </dd>
        <dt>邮政编码</dt>
        <dd>
            <input class="form-control"  type="text" value="{%zip_code%}" name="data[zip_code]" maxlength="6"/>
        </dd>
        <dt><span class="asterisk">*</span>收货人姓名</dt>
        <dd>
            <input class="form-control"  type="text"  value="{%consignee%}" name="data[consignee]" maxlength="20"/>
        </dd>
        <dt><span class="asterisk">*</span>手机</dt>
        <dd>
            <input class="form-control"  type="text"  value="{%contact_mobile%}" name="data[contact_mobile]" />
        </dd>
        <dt>固定电话</dt>
        <dd>
            <input class="form-control"  type="text"  value="{%telephone%}" name="data[telephone]"/>
        </dd>
        <dt>
            <label for="check1" class="check_box">
                设为默认
            </label>
        </dt>
        <dd class="checkbox-wrap">
            <input id="check1" name="data[default_type]" value="1" type="checkbox" {%if default_type==1%}checked="checked"{%/if%}>
            <label for="check1" class="check_box">

            </label>
        </dd>
        <dd class="bottom-btn">
            <input type="hidden" value="{%id%}" name="id">
            <input type="submit" class="btn-primary" value="保存">
            <input type="button" class="btn-default" value="取消" data-act="cancel">
        </dd>
    </dl>
    </form>
</script>
<script>
    seajs.use(['trade_com',"my97"],function(trade_com){
        trade_com.createOrder();
    });
</script>
{include member.inc.foot_hook}
</body>
</html>
